import { Http } from "@/api/api";
import { onMounted, ref } from "vue"
import type { Ref } from "vue"



// 请求数据
export const dataSearchList = () => {
    const DataRequest:Ref<any> = ref([]);
    const Request = async () => {
        const res:any = await Http.dataRequest();
        DataRequest.value = res.data;
    };
    onMounted(() => {
        Request();
    });
    return{
        DataRequest
    }
}